import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    count: 0,
	height:0,   // app 导航栏高度
	// userdata:null,
	userdata:{
		email:"1925541533@qq.com",
		password:"123456"
	}
  },
  mutations: {
	  // 设置导航栏高度
	  setheight(state,data){
		  state.height=data
	  },
	//修改用户信息
	setuserdata (state,data) {
	  state.userdata=data
	},
  }
})


export default store